package com.zhaotianhao.springboot_demo_fire.mapper;

import com.zhaotianhao.springboot_demo_fire.entity.Firearms;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Z-7
 * @since 2022-03-22
 */
public interface FirearmsMapper extends BaseMapper<Firearms> {
    /**
     * 查询所有
     * @return
     */
    List<Firearms> queryAll();

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Firearms queryById(Integer id);
}
